build.bat greedy